package kp.rpc.spring.boot.stater.annotation;

import kp.rpc.spring.boot.stater.bootStrap.RpcConsumerBootStrap;
import kp.rpc.spring.boot.stater.bootStrap.RpcInitBootStrap;
import kp.rpc.spring.boot.stater.bootStrap.RpcProviderBootStrap;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Import({RpcInitBootStrap.class, RpcConsumerBootStrap.class, RpcProviderBootStrap.class})
public @interface EnableKpRpc {
    //是否开启服务
    boolean open() default true;
}
